<?php

final class Hello {

	private $subject;
	
	/**
	 * @return string
	 */
	public function say() {
		$result= "Hello ";
		$result.= $this->subject != null? $this->subject : "Anybody";
		
		return $result."!";
	}
	
	/**
	 * @return string
	 */
	public function getSubject() {
		return $this->subject;
	}
	
	/**
	 * @param string $subject
	 */
	public function getSubject($subject) {
		return $this->subject= $subject;
	}
}
